// patch_user_vip.js

let body = $response.body;
let obj = JSON.parse(body);

// 修改 vipInfo 字段
if (obj?.data?.user?.vipInfo) {
  obj.data.user.vipInfo.level = "1";
  obj.data.user.vipInfo.valid = true;
  obj.data.user.vipInfo.expiredTime = 1908652800000; // 2030-06-28 00:00:00
}

$done({ body: JSON.stringify(obj) });
